package com.flyco.dialog.utils;

import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.StateListDrawable;

public class CornerUtils
{
  public static StateListDrawable btnSelector(float paramFloat, int paramInt1, int paramInt2, int paramInt3)
  {
    StateListDrawable localStateListDrawable = new StateListDrawable();
    Drawable localDrawable1;
    Drawable localDrawable2;
    if (paramInt3 == 0)
    {
      localDrawable1 = cornerDrawable(paramInt1, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat });
      localDrawable2 = cornerDrawable(paramInt2, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat });
    }
    while (true)
    {
      localStateListDrawable.addState(new int[] { -16842919 }, localDrawable1);
      localStateListDrawable.addState(new int[] { 16842919 }, localDrawable2);
      return localStateListDrawable;
      if (paramInt3 == 1)
      {
        localDrawable1 = cornerDrawable(paramInt1, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, 0.0F, 0.0F });
        localDrawable2 = cornerDrawable(paramInt2, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, 0.0F, 0.0F });
      }
      else
      {
        localDrawable1 = null;
        localDrawable2 = null;
        if (paramInt3 == -1)
        {
          localDrawable1 = cornerDrawable(paramInt1, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, paramFloat, paramFloat });
          localDrawable2 = cornerDrawable(paramInt2, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, paramFloat, paramFloat });
        }
      }
    }
  }

  public static Drawable cornerDrawable(int paramInt, float paramFloat)
  {
    GradientDrawable localGradientDrawable = new GradientDrawable();
    localGradientDrawable.setCornerRadius(paramFloat);
    localGradientDrawable.setColor(paramInt);
    return localGradientDrawable;
  }

  public static Drawable cornerDrawable(int paramInt, float[] paramArrayOfFloat)
  {
    GradientDrawable localGradientDrawable = new GradientDrawable();
    localGradientDrawable.setCornerRadii(paramArrayOfFloat);
    localGradientDrawable.setColor(paramInt);
    return localGradientDrawable;
  }

  public static Drawable cornerDrawable(int paramInt1, float[] paramArrayOfFloat, int paramInt2, int paramInt3)
  {
    GradientDrawable localGradientDrawable = new GradientDrawable();
    localGradientDrawable.setCornerRadii(paramArrayOfFloat);
    localGradientDrawable.setStroke(paramInt2, paramInt3);
    localGradientDrawable.setColor(paramInt1);
    return localGradientDrawable;
  }

  public static StateListDrawable listItemSelector(float paramFloat, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    StateListDrawable localStateListDrawable = new StateListDrawable();
    Object localObject1;
    Object localObject2;
    if ((paramInt4 == 0) && (paramInt4 == paramInt3 - 1))
    {
      localObject1 = cornerDrawable(paramInt1, new float[] { paramFloat, paramFloat, paramFloat, paramFloat, paramFloat, paramFloat, paramFloat, paramFloat });
      localObject2 = cornerDrawable(paramInt2, new float[] { paramFloat, paramFloat, paramFloat, paramFloat, paramFloat, paramFloat, paramFloat, paramFloat });
    }
    while (true)
    {
      localStateListDrawable.addState(new int[] { -16842919 }, (Drawable)localObject1);
      localStateListDrawable.addState(new int[] { 16842919 }, (Drawable)localObject2);
      return localStateListDrawable;
      if (paramInt4 == 0)
      {
        localObject1 = cornerDrawable(paramInt1, new float[] { paramFloat, paramFloat, paramFloat, paramFloat, 0.0F, 0.0F, 0.0F, 0.0F });
        localObject2 = cornerDrawable(paramInt2, new float[] { paramFloat, paramFloat, paramFloat, paramFloat, 0.0F, 0.0F, 0.0F, 0.0F });
      }
      else if (paramInt4 == paramInt3 - 1)
      {
        localObject1 = cornerDrawable(paramInt1, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, paramFloat, paramFloat });
        localObject2 = cornerDrawable(paramInt2, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, paramFloat, paramFloat });
      }
      else
      {
        localObject1 = new ColorDrawable(paramInt1);
        localObject2 = new ColorDrawable(paramInt2);
      }
    }
  }

  public static StateListDrawable listItemSelector(float paramFloat, int paramInt1, int paramInt2, boolean paramBoolean)
  {
    StateListDrawable localStateListDrawable = new StateListDrawable();
    Object localObject1;
    if (!paramBoolean)
      localObject1 = new ColorDrawable(paramInt1);
    for (Object localObject2 = new ColorDrawable(paramInt2); ; localObject2 = cornerDrawable(paramInt2, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, paramFloat, paramFloat }))
    {
      localStateListDrawable.addState(new int[] { -16842919 }, (Drawable)localObject1);
      localStateListDrawable.addState(new int[] { 16842919 }, (Drawable)localObject2);
      return localStateListDrawable;
      localObject1 = cornerDrawable(paramInt1, new float[] { 0.0F, 0.0F, 0.0F, 0.0F, paramFloat, paramFloat, paramFloat, paramFloat });
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.flyco.dialog.utils.CornerUtils
 * JD-Core Version:    0.6.2
 */